<admintpl file="headerEx"/>
<title>{:L('TABLE_MODEL_LISTS')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet"/>
<!--ios7-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/TciocEx/js/ios-switch/switchery.css" />

<!--icheck-->
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/red.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/green.css" rel="stylesheet">
</head>
<body class="sticky-header">
<section>
  <!-- main content start-->
  <div class="full-content">
    <!-- body wrapper start -->
    <div class="wrapper">
      <div class="row">
        <div class="col-sm-12">
          <section class="panel">
            <header class="panel-heading custom-tab turquoise-tab">
              <ul class="nav nav-tabs">
                <li>
                  <a href="{:leuu('Admin/Model/index')}">
                    <i class="fa fa-bars"></i> {:L("TABLE_MODEL_LISTS")}
                  </a>
                </li>
                <li class="active">
                  <a href="{:leuu('Admin/Model/edit',array('id'=>$_info['id']))}">
                    <i class="fa fa-plus"></i> {:L("TABLE_MODEL_EDIT")}
                  </a>
                </li>
              </ul>
            </header>
            <div class="panel-body">

              <div class=" form">
                <form class="cmxform form-horizontal adminex-form js-ajax-form" id="commentForm" method="post" action="{:U('Admin/Model/edit')}" novalidate="novalidate">
                  <div class="form-group ">
                    <label for="cname" class="control-label col-lg-2">{:L('TABLE_MODEL_NAME')}(*)</label>
                    <div class="col-lg-10">
                      <input type="hidden" name="id" value="{$_info['id']}">
                      <input class=" form-control" id="cname" name="title" minlength="1" value="{$_info['title']}" type="text" placeholder="{:L('TABLE_MODEL_TITLE_PLACEHOLDER')}" required="">
                    </div>
                  </div>
                  <div class="form-group ">
                    <label for="cemail" class="control-label col-lg-2">{:L('TABLE_MODEL_TABLE_NAME')}(*)</label>
                    <div class="col-lg-10">
                      <input class="form-control " id="cemail" type="text" minlength="3" value="{$_info['table_name']}" placeholder="{:L('TABLE_MODEL_TABLE_NAME_PLACEHOLDER')}" name="table_name" required="">
                    </div>
                  </div>
                  <div class="form-group ">
                    <label for="curl" class="control-label col-lg-2">{:L('TABLE_MODEL_EXTEND_NAME')}(*)</label>
                    <div class="col-lg-10">
                      <input class="form-control " id="curl" minlength="3" value="{$_info['name']}" placeholder="{:L('TABLE_MODEL_EXTEND_NAME_PLACEHOLDER')}" required type="text" name="name">
                    </div>
                  </div>
                  <div class="form-group">
                    <label for="cextend_name" class="control-label col-lg-2">{:L('TABLE_MODEL_IS_EXTEND')}(*)</label>
                    <div>
                      &nbsp;关闭 <input type="checkbox" id="cextend_name" name="is_extend" class="js-switch"  <php> if($_info['is_extend']){ echo "checked=checked"; } </php>   data-switchery="true" style="display: none;"> 开启
                    </div>
                  </div>
                  <div class="form-group">
                    <label for="cstatus" class="control-label col-lg-2">{:L('TABLE_MODEL_STATUS')}(*)</label>
                    <div>
                      &nbsp;关闭 <input type="checkbox" id="cstatus" class="js-switch"  <php>  if($_info['status']){ echo "checked=checked"; } </php>   name="status" data-switchery="true" style="display: none;"> 开启
                    </div>
                  </div>
                  <div class="form-group">
                    <label for="clist_type" class="control-label col-lg-2">{:L('TABLE_MODEL_LIST_TYPE')}(*)</label>
                    <div>
                      &nbsp; <select name="list_type" id="clist_type" style="height:30px;">
                      <option value="0"   <php> if($_info['list_type']==0){ echo "selected"; } </php> >普通</option>
                      <option value="1" <php> if($_info['list_type']==1){ echo "selected"; } </php>>树形</option>
                    </select>

                    </div>
                  </div>
                  <div class="form-group">
                    <div class="col-md-12 text-center clearfix">
                      <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
                      <a href="javascript:history.back(-1);" class="btn btn-default">返回</a>
                    </div>
                  </div>
                </form>
              </div>

            </div>
          </section>

        </div>
      </div>
    </div>
    <!--footer section start-->
    <footer>
      <admintpl file="copyright"/>
    </footer>
    <!--footer section end-->
  </div>
  <!-- main content end-->
</section>

<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<!--ios7-->
<script src="__PUBLIC__/TciocEx/js/ios-switch/switchery.js" ></script>
<script src="__PUBLIC__/TciocEx/js/ios-switch/ios-init.js" ></script>

<!--icheck -->
<script src="__PUBLIC__/TciocEx/js/iCheck/jquery.icheck.js"></script>
<script src="__PUBLIC__/TciocEx/js/icheck-init.js"></script>
<!--common scripts for all pages-->

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>

</body>
</html>
